#include <iostream>
#include<string> 
using namespace std;

//字符串 插入和删除

void test08()
{
    string str = "hello";

    //插入

    str.insert(1, "111");
    //hello
    cout << "str = " << str << endl;

    //删除
    str.erase(1, 3); //从第“1”个位置起，删3个
    cout << "str = " << str << endl;
}



int main()
{
    test08();

    return 0;
}
